Quote:

so my code was just fine.




Yes and No

There is nothing wrong with your code per se, however you switched to a FOR..TO - I specifically wanted to keep the collection enumeration (FOR...EACH...IN).