remove obsolete codes