limit the clustering to the first n clusters