add diff mode