passing data to updateCounters