changes in loop iterator