updates environment