reduce a bunch of stuff