changed current location to location object