begin knn