code added to the OutputGenerator