update distance_remap