added mass_p write out