change the apriori to a T type