begin createGroup method