generates schedules