updated gspread function, have not tested it yet