updating environment