linewrap within the pass refactoring