fixed output file naming