merge with heatmap branch: format data and draw a heat map with it