add class for distance
merge