added kmeans and times