optimized some particle processing