getLocations implemented