simplify calculation of alpha_max