use dirichlet for beta