refactoring: changed internal representation of notes