replaced atom with self.coords[atom]