words refactoring