check state as well