using setmodified in subtree