fixing code to read from Google spreadsheets