refactor, comment search_knn