make AtomicBoolean a volatile boolean