add hash constrains to text_data