having heterocyclic rings containing hetero atoms other than oxygen