works on threads. ATOMIC.