changes for clustering