simplify loop
Merge pull request #498 from dawgfoto/cleanupGC

simplify loop