delete obsolete codes