dendograms and clustering fixes