update group structure