setting up quadrature