added t() and add() functions