group type merging