improved performance by keeping particle operations batched