preparing location search