need to fix atomicUnits.end