integrate iterative reduce in to yarn