Fix to Subscription

made an external file for the subscription check