added clustering to analytics