separate ms_substed printing function