finally resolved possible glitches with assignment of NRmats