add the particle insertion method