wait for objects to be detected