update stl-accumulate