update envirotment