writing results to file works