refactor notes