working on the particle filter