renamed history counter var