replace nmodel() with nmodels()