switched monte_carlo into a method of particles