change function addAtom