add knn + data, merge distance