added calculation for some coefficients