added utility pair hash function