fix for optional argument

output argument was not really optional.