arrange codes' dictionary