added densuity analysis to clustering