reduce api call