equals/hashCode for index values