solve the search for a range problem.