write to resultfolder