added changes for tesseract