changed text_index to text_offset