passing in output filename