added classGroupsClash method!