refactor note