modified Beta.mc