updated tdm example