added functionality for the unsubscription