refactoring the particle system effect