adjusted api call