migration to new type TNode