add comment for api call function