update atomic operation