added Tdf-cont pseudocode