change criterion for number of clusters