update parent tree