working with Gaussian quadratures