changed text_index_ to text_offset_