reads in atom type