deleted knn operator, cleaned up unnecessary changes