solve search for a range