betahat --> z finished