include TP raw function