check for state