remove unwanted classes