added global var to populat headers for spreadsheet