added breakparticle function