updated hashing and index.