add preparing sets for knn