the monte carlo simulation