add DiffToggle function