refine searchRange()