simplify up equals and hashCode