update for groups