delete unneeded tab codes