untested version of splitparticles