saving result to the file