update location to be int