return uniq classes and groupes only