add bernoulli methods