writing the results to files