restructure itebd codes