NOVELTY - A polymeric composition (C1) comprises polymer backbone, where the polymer backbone contains at least one repeating unit containing three-ring system having at least one quaternary nitrogen.    USE - As a polymeric composition, used in a film; and in device comprising photovoltaic cell, field-effect transistor and light-emitting diode (claimed).    ADVANTAGE - The polymer promotes strong charge transfer electronic transitions that gives rise to red-shifts in the band gap, and thus provides a good match to the solar spectrum and increased absorptivity of light. The polymer transformation creates polymers having fused ring structures in the polymer backbone. This enforcement of a planar structure can results in extended electronic derealization and high conductivities, thus facilitates electron transfer through the materials, which is used to lower resistive losses in organic photovoltaic materials and give higher current densities in field effect transistor devices. The polymer in each domain is connected through covalent bonds and thus minimizes the defects (e.g. cracks, large energetic barriers) and eliminates the interfaces between the two materials.    DETAILED DESCRIPTION - A polymeric composition (C1) comprises polymer backbone, where the polymer backbone contains at least one repeating unit containing three-ring system having quaternary nitrogen of formula (I).    X-=anionic species;    a=0-3;    Z'=heteroatom;    R1-R4=H, alkyl, alkenyl, alkynyl, heteroalkyl, aryl, or heteroaryl, or absent.    Optionally any number of R1-R4 is joined together or with an atom from A' or B' to form rings. INDEPENDENT CLAIMS are included for the following:    (1) producing (M1) polymeric composition involving providing a polymer containing at least one repeating unit, where at least a portion of the repeating unit is a compound of formula (II); and subjecting the polymer to suitable conditions to transform the polymer, where after transformation the repeating unit is the compound (I);    (2) a polymeric composition (C2) comprising a compound of formula -(C'-D')m- or -(C')m-(D')n-; and    (3) a film or device comprising the polymeric compositions (C1) and (C2), or the polymeric composition produced by the method (M1).    A'=ring or a portion of a ring system (optionally comprising at least one heteroatom; and optionally substituted);    B'=ring or a portion of a ring system containing N (optionally at least one additional heteroatom; and optionally substituted);    Z'=heteroatom;    C'=repeating unit (I);    D'=second repeating unit;    m and n= greater than or equal to 1.