edited addGroup()