added Poisson-Bernoulli mode