some code reduction (nw)