update the API