small refactor of schedule activation