modify for large number of particles over 2048.