adding adaptive quadrature (ONLY FOR QUADS RIGHT NOW)