make_knn function added