prepare reduce : flatMap
prepare reduce : join instead of get