TNode code working better