added error around M in outcome model