cleaned up index state.