generate the output