implemented set group state