getting clusters and analyzing trends