added nmodel function plus updated subset testing