still a bug, not use the lastest centroids to make output