small tweak to process_text