get red of one getter by using equals/hashCode