using new c++ for loop syntax.  goodbye BOOST_FOREACH