added quad_form