edited index a bit