use of atomic integer.