remove redundant classes