fixed heatmap functionaity. implemented grouping functionality.