moved particles to lib.pde