adding chan_unsubscribe function.