updated the environment