add cleanChannelByCode func