dp on the substitute t