part of knn search pushed, still working...