prepare for heatmap