elif to avoid counting twice group totals