add context to t-function