define createSubscription method + better JSDoc