removing unneeded classes