switched to a less error prone iteration method in ParticleContainer