remove excess classes.