update code_maps
restructure code_maps