add index on hash