modify the api