evaluateState