added particle system code