updateenvironment