fix typo: toText -> to_text