working on channel output