update logic to control counters