changes to tnrs fxn, #171