added hashing function. It don't work tho.