particle system reference implementation