making dendrograms, fixing class density