check what is in state