updated beta, fixed errors