refactors hard indexes.