added atomic counters