add knn for three