refactor, remove unnecesary PIO counter