source code for accumulation node