added tnp_compare
added tnp_compare