calculate_new_groups ok