modify outputtof such that it records the name of atoms