kNN updated