changes in quadrature calculations