prepare for rehash.