prototype heatmap implementation