fixed MC error sampling and plotting