fixed passing the schedule