tdiff enhancement