refactoring note functionality