atomic: add functions should return the result.