add constrains to text_data