add the code of tnf