added update function heatmap. wasted lots of time on something non-crucial wahh