added write to text