adding the api calls