added reduces, now there are errors again?