modify diff generator