few modification
pdfgit implement