added new function nquad