remove class duplicates