added updateStates()