make dynamic scheduling in groups (2)