add note refactor