a reduce is overkill here, just use a normal forEach