change getParticleFromID function input