hashFunction as Callback