improve text extraction