improve text extraction efficiency