fix example to prevent double counting