delete unneeded type declarations