added T D F functions to flow