changed equals to test for strict equality.