added view reduce support.