index rewritten