check state and outcome