hash function problem