adjust the clustering order