getting the index ready