fix bernoulli to model.bounulli