filter and inflect state/district groups properly