for each changed to BOOST_FOREACH