searchinNearest working