fixing the clustering