save results to file - to be testd