moving to starting from i = 0