operator== overloaded for state