adding optional callback when unsubscribe