updated for beta analyses