updating environments