added fct to montecarlo