updated api call