use AtomicBoolean