retailer logic improved
retailer count / temp count corrected