changed counter thread