check state