removed unused variable (nw)