search a range