generating output