added betaupdate func