implementing %W.