modify reduce function of view list