use stl-style iterators instead of java-style ones.