use difference of coordinates rather than coordinates for clustering