for TF autocode