allow specification of field to sum