added tf_new.py