simplifying hashCode