fixed error in MSM calculations