commented the output channel code