added hclust resampling