adding prev/next to index