Update DISTANCE