changed index names to rewrites