started writing data to text files