update particle idx