update to distance