read index rewriten