fixed output file.