simplify the calculation of the flux values
simplify the calculation of the alpha values
removed unnecessary variables