fix: move name_for_tfs definition
With this MR we define name_for_tfs
a few lines earlier, so that it is possible to use it in the halfgap computation
With this MR we define name_for_tfs
a few lines earlier, so that it is possible to use it in the halfgap computation