add constrains to text_data
add constrains to text_data