fixed the subscriptions code.