beginning of finding atoms in residues