correctly select ids just for model