updated rows
updated writing to spreadsheet