knn code adjust commit