better check for object ids