fixing multipleOutputs