updated channel code