need to run unify_codes