updated for beta mixture