added stat counter