added the API call