added method for general subtree change bookkeeping