working on generate_schedule in division model