fixing hashing function so it actually works ;)