speed up the cluster finding