update location object