add t-function