finish ocr prototype