changes to location name function