correctly use subscribe api call