debugging spike counter