added intersection with quadratics