replace nvalue() with nvalues()