nearest neighbors updated