changing IMolecule to IAtomContainer