changes to heatmap function