Nonetheless, a systematic way to discriminate atomic species is lacking. Here, we extend previous work [12] for the identification of heteroatoms.We employ ab initio real-space pseudopotentials to accurately simulate nc-AFM images of four molecules: DBT, ITP, ACR, and FePc, which contain the heteroatoms S, I, and N. We find S and I atoms can be easily identified from C, which is not surprising given their different atomic structure. We also propose a new method, scanning with a chemically inert tip followed by a chemically active tip, to effectively determine the structures of N containing molecules. We suggest the use of an inert tip, such as a CO tip, to determine the carbon skeleton coupled with the use of a metallic tip, such as a Cu tip, to determine the position of the N atoms.