add function in addchannel is fixed