updated index for HW4 up to progress bar