rearrange the particle IDs, remove some redundant