update table structure for spreadsheet