refactoring with word wrap