write atom_spec