working cycles and no duplicate classes