generate output