define currentState