removing class duplicates