add accumulate erlang assignment