remove unneeded classes