adjustments to offset.h for location main in buildHeatmap