Particle code added