added another counter for predb