rename updateAtomPositions to updateAtoms