simplify reduce step