updated spreadsheet, and generate programme