updates for creating output file