beta function

beta function