protect_groups.py #2