diff.apply for modes