i see.  viewing the entire file makes a difference,  you doing checks before to make sure that section is in the ready course, so that ensures that cur_index will equal index somewhere.