start of generation of output