write msm