improve facet to sum