first attempt to implement location search