Improving detection of object vs id