rename tf to td
Remove dead code