edited index rightly