update location variables