some changes in te_inst.py to see if te_pair works, still not working