added tnp_compare