update 28/08

fix loop index