use atomic to get/set the result