added UpdateEnvironmentState()