some equals() optimization