figure out how the heatmap is put together