allow specification of summary functions