draft search for a range function