use get_text instead of get_slice