delete unneeded codes