modify group_state2.py