added pass hashing function