refactor class_schedule param