use revised simex code in montecarlo function