shared some variables, fixed getSheetByName