Distances cleaning