splitting group manipulation into newGroup and addGroup