make outputFile an argument