Fixing atomic function
Fixing atomic function