update the atom