added tf variable in parameter for run method