initialized create group function