started to add the double hashing functionality