replace notes by subtree-merge