trying to fix template form of gauss quadrature integration