t & tr functions