diff snippet