update logic for hidden counter