first base impl of accumulator chain map