removed redundant counter