added origin index to the particle class