modified scripts to compare lems and nrn