updated observedState.py