create group and subgroup