check to switch state data