write to text version