change the api calls