adding orthog basis + quadrature