added state equality