seq right this time?
using Map accum
I like this refactor a little better