added heatMap function.