refactoring notepad