now diff contains all needed information so finally apply/patch implementation started