get rid of mb_type_len