created functions to retrieve Locations