changed NUM_MC to 1000