converted BOOST_FOREACH to FOREACH