added more functionality to robot search function