type code reformat