changed structure of atomicrmw