why the change from i=0 to i=1?