added function beta2_curve