ClusterData function edited