fix counterStatus subroutine