changed OCRReader to object