before modifying group knn selection