adding summing reducer
fixing simplify