made scheduleData a var