improvements to the counter