added the state vector for clarification