change the std::for_each to hpx::for_each .. a work around