monte carlo method done