add t-function for confirm