fixed priority bug, add counters on index