extracted desired api call