added docstring for beta2_curve