with the ring nitrogen atoms and the doubly bound oxygen or sulfur atoms attached to the same carbon chain, which is not interrupted by carbocyclic rings