text recognition class added