added atomic variable