update safeadd