adjustment of quad,quadl and quadgk