output working for spreadsheet