adding for loops and being able to modify for loop iterator