added jake's particle filter