remove uneeded classes