updated API call