changed particles to pointers in smoothline