added old input to kmeans