Step 8Top indexEnd