added initialization of groups