added function beta0_curve