cleaning up NMD.m.temp.3