removed unused variables (nw)