update the result of knn