turns out nonAtomic needs to be true