added a second parameter to addSubscription