handling unique groups