working rehash