using more atomic integers so threads play nice