changed name of removeOutgroups to removeGroups