changed definition of output_unit