updated nrm2 returned type