refactored again: now using just one leaf node for all notes of a session