search for a range