updating the api variables