added t function