added freezeParticle and changePos for particle functions