removed unused variable
added static NTH, NTHCDR