write data to files