avoid duplicate calls in OCR