tesseract: simplify