add bdiff and tdiff.