update environment