annotated search for a range