Application of terpyridyl ligands to tune the optical and electrochemical properties of a conducting polymer

We present a simple and effective way of using metal and metal–ligand modifications to tune the electrochemical and optical properties of conducting polymers. To that end, a polyterthiophene functionalized with terpyridine moieties was synthesized and then the resulting film's surface or bulk was modified with different metal ions, namely Fe2+, Zn2+ and Cu2+ and terpyridine. The modification of the terpyridine functionalized polyterthiophene film by Fe2+ increased the absorptivity and electrochemical capacitance of the conducting polymer, and improved its conjugation. Further modification by Zn2+ and Cu2+ resulted in dramatically different spectroelectrochemical properties of the film. Moreover, the influence of the solvents (ACN and 1 : 1 ACN : H2O) in conjunction with the metal ion applied for the modification was found crucial for the electrochemical and optical properties of the films.


Introduction
Conducting polymers, such as polythiophenes have been found to be suitable materials for the use in electronic, optoelectronic, photovoltaic, spin-transport studies and chemical sensor devices. [1][2][3][4][5] Their usage in such a wide range of applications may be attributed to the possibility of introducing various functionalities to the thiophene, bithiophene and terthiophene monomers. 6,7 In this respect, an interesting functional material may be obtained by introducing terpyridine substituents to the thiophene monomer. The terpyridines are effective ligands to complex metal ions, forming stable complexes consisting of two terpyridine molecules and a metal ion that are possible to be utilized in advanced molecular systems. [8][9][10] The abundance of terpyridine derivatives and their ability to form stable complexes with different metal ions allows the tailoring of diverse material properties, e.g. obtaining cytotoxicity against several human cancer cell lines or allosterically controlling electronic effects. 11,12 Moreover, compounds bearing the terpyridine functionality may be used to obtain different structural materials, such as molecular wires, dendrimers and hydrogels as well as polymers with terpyridine moieties in the polymer backbone or in the side chains. [13][14][15][16][17][18][19] Additionally, the functionalization of conducting polymers by adding the terpyridine moiety as a side-group has led to the development of chemical sensors and tunable surfaces via molecular engineering and surface modications of the metallo-organic complexes at the interface. [20][21][22] The challenge in adding bulky substituents such as terpyridines to polythiophenes using functionalized thiophene monomers is the distortion in the polymer backbone that arises from neighboring substituent steric interactions. In order to overcome this, Officer and co-workers have utilized functionalized terthiophenes, although the polymerization of terthiophenes can be challenging particularly with conjugated substituents. [23][24][25] The successful formation of conducting polymers from terthiophenes has however been achieved by the attachment of alkoxy substituents on the outer rings of the thiophene monomers, that not only activates the outer thiophene rings for oxidative coupling but also reduces charge localization within an aryl-aryl conjugated system that deactivates terthiophene monomer oxidative coupling. 20,26,27 In this work, a bisdecyloxy-substituted terthiophene monomer was functionalized with a vinylterpyridine substituent to obtain (E)-4 0 -(2-(4,4 00 -bisdecyloxy-2,2 0 :5 0 ,2 00 -terthiophen-3 0 -yl)ethenyl)-2,2 0 :6 0 ,2 00 -terpyridine (TTPy), which was subsequently modied with metal ions (Fig. 1A). Modication of the lm surface and the bulk of poly(TTPy) with Fe 2+ , Zn 2+ and Cu 2+ metal ions afforded dramatically different optical and electrochemical lm properties, with the Fe 2+ -modied lm showing an increased electrochemical capacitance, better conjugation of the conducting polymer system and higher absorptivity.

Experimental
Electrosynthesis of poly(TTPy) and its surface modications by metal-TPy Cyclic voltammetry was used to electrosynthesize poly(TTPy) lms on indium tin oxide (ITO) glass electrodes. The electropolymerisation was done using eDAQ system controlled by EChem soware in a three electrodes system in 1 : 1 ACN : DCM solution containing 5 mM TTPy monomer with 0.1 M TBAP as supporting electrolyte. To avoid solubility problems, it was important to rst dissolve the monomer in DCM while the supporting electrolyte salt (TBAP) was dissolved in ACN, followed by mixing of the two solutions to form the solution for polymerization. Before the polymerization, the ITO slide (area 1.55 cm 2 ) was repeatedly washed with deionized water and ethanol (5 times) and le in ethanol for 10 min under ultrasound conditions, aer which it was dried in open air. Such a pretreated ITO slide served as the working electrode. A platinum mesh electrode served as the counter electrode, while a Ag/Ag + /0.1 M TBAP in ACN reference electrode was used. Prior to the electrosynthesis, the reference electrode was calibrated in ferrocene solution. The electrosynthesis was done by performing one potential cycle between À0.2 and 0.8 V (vs. Ag/ Ag + l/0.1 M TBAP-ACN electrode) with the scan rate of 0.1 V s À1 . Aer the polymerization the poly(TTPy) lm on ITO glass was washed with ACN (lms 1 and 4).
The metal complexation of the poly(TTPy) was done by rst soaking the poly(TTPy) lms on ITO glass for 1 h in ACN solution containing 10 À3 M FeCl 2 . This was done in order to immobilize Fe 2+ in mono complexes with terpyridyl moieties present in the poly(TTPy). Then the addition of 5 Â 10 À3 M TPy was done to cap the terpyridyl-Fe 2+ mono complex with another terpyridyl group (Fe 2+ -based modications, lms 2 and 5). The lms were le in the 10 À3 M FeCl 2 and 5 Â 10 À3 M TPy in ACN solution for 24 h. Then the lms were washed with ACN and characterized by using cyclic voltammetry, optical spectroscopy, X-ray photoelectron spectroscopy (XPS) and contact angle measurement done using a goniometer. Aer that, the Fe 2+containing lms were further used for subsequent modication by Cu 2+ and Zn 2+ . The exchange of the central metal ion (from Fe 2+ to Cu 2+ or Zn 2+ ) was done by soaking the lms for 24 h either in the ACN solution containing 10 À3 M CuCl 2 (poly(TTPy) Cu lm 3) or in the 1 : 1 ACN : H 2 O solution containing 10 À3 M ZnCl 2 (poly(TTPy)Zn lm 6). Again, aer the modication, the lms were washed with ACN and characterized by using cyclic voltammetry, optical spectroscopy, XPS and contact angle measurement.
Characterization of poly(TTPy), poly(TTPy)Fe, poly(TTPy)Cu and poly(TTPy)Zn The thickness of the obtained poly(TTPy) lm on ITO was investigated using prolometry (Dektak 150 prolometer). Field emission gun scanning electron microscopy (FEG-SEM, Leo 1530, Zeiss) was used in order to investigate the morphology of poly(TTPy). For that purpose, a thicker lm was electrosynthesized as described above, but by applying ve potential cycles. Resonance Raman measurements were done on the poly(TTPy) electrodeposited on ITO glass in order to conrm the conducting polymer structure. Spectra were collected using a setup which has been previously described. 28 In short, it is composed of an excitation beam and collection lens in a 135 backscattering arrangement. Scattered photons were focused on the entrance slit of an Acton SpectraPro500i spectrograph with a 1200 grooves per mm grating, which disperses the radiation in a horizontal plane on a Princeton Instruments Spec10 liquid-nitrogen-cooled CCD detector. A Coherent Innova Sabre argon-ion laser provided 457.9, 488.0 and 514.5 nm excitation wavelengths, while solid-state CrystaLasers were used for 532.0 and 593.7 nm. Notch lters (Kaiser Optical, Inc.) or long-pass lters (Semrock, Inc.) matched to these wavelengths was used to remove the laser excitation line, and a 632.8 nm short pass lter was used to remove a sharp peak from the 593.7 nm line.  UV-1800 spectrophotometer (Kyoto, Japan) by recording the absorbance spectra of a lm in air from 400 to 800 nm. The spectra obtained for pure ITO glass was used for background correction. For the XPS analysis the samples were cut into approximately 7 Â 7 mm 2 squares and mounted on a copper sample holder using carbon tape. The samples were grounded using silver paste connecting the ITO surface to the copper sample holder. XPS spectra were collected by illuminating the samples with a dual anode, non-monochromatic X-ray source (Omnivac) using Mg Ka radiation and the photoemission collected by a SES2002 analyzer (Scienta) operating at 200 eV (survey scan) or 50 eV (detail scan) pass energy. The spectra were processed using CasaXPS. A linear background was used, and curve tting was carried out by restricting the width of the tted peaks to a maximum of the resolution expected for the analyzer conguration (4 mm slit, 50 eV pass energy has a theoretical FWHM of 1 eV). The work function of the analyzer was approximately 6 eV. This and any charging shis were accounted for by referencing the energy scale to the carbon peak at 284 eV. Quantitative results were obtained from the survey scans using the relative sensitivity factors in the CasaXPS library. No correction for analyzer transmission as a function of electron energy has been applied, which will tend to reduce the apparent concentration of the high binding energy elements by 30-40%. Finally, the hydrophobicity of all surfaces was characterized by Data-Physics OCA20 goniometer and water droplet (2 mL, Milli Q water). The contact angle was measured just aer the water droplet was in contact with the measured surface. The uncertainty of the measurements was always obtained from ve consecutive measurements.

The Fe[(TTPy) 2 ] 2+ complex formation with competing ions
The Fe[(TTPy) 2 ] 2+ complex formation was investigated in presence of competing ions utilizing membrane entrapped TPPy and immobilized onto paper strips. To prepare such substrate a paper strip was dip coated in a THF solution of 1% TTPy, 0.35% KTFPB, 65.65% o-NPOE and 33% PVC (weight%) and le for evaporation of the solvent. Entrapment of the monomer is such matrix allowed to follow kinetically the formation of Fe [(TTPy) 2 ] 2+ complex in presence of competing ions. The measurements were performed using two different protocols. In the rst protocol the measurement was done by measuring absorbance of Fe[(TTPy) 2 ] 2+ complex formation at 598 nm for 300 s at 0.1 mol dm À3 FeCl 2 . Then the measurements were done when Fe 2+ was competing for complex formation with a 1 : 1 ratio of competing ions (j) to obtain the response of the Fe [(TTPy) 2 ] 2+ affected complex formation. The sequence in which the interfering ions were investigated was as follow: Na + , K + , Mg 2+ , Ag + , Ca 2+ , Al 3+ , Sr 2+ , Zn 2+ , Fe 3+ , NH 4+ , Ba 2+ , Mn 2+ , Hg 2+ , Ni 2+ , Co 2+ , Cu 2+ and Ru 3+ . Each competing ion was investigated using a new Fe 2+ -SM paper strip. The inuence of the competing ion on Fe 2+ complexation by TTPy was determined then as the ratio between the maximum complex absorbances at 598 nm aer 300 s of the competing ion-free and competing ion responses. In the second protocol, the absorbance spectra were taken in air from dried (approx. 1 h) paper strips used in the rst protocol. The absorbance measurements were performed between 400 and 700 nm. The inuence of the interfering ion on Fe 2+ complexation by TTPy was then determined as the ratio between the Fe[(TTPy) 2 ] 2+ complex absorbance at 598 nm of competing ion-free and competing ion responses. A relatively high noise level in the absorption spectra between 450 to approx. 550 nm, attributed to the presence of paper in the measuring cell, was always observed when investigating paperbased strips.

Computational modelling
In order to validate the obtained poly(TTPy) and its modication, geometry and vibrational calculations were generated using the Gaussian 09W program package which implemented the Becke, three-parameter, Lee-Yang-Parr (B3LYP) functional employing a LANL2DZ basis set for Fe centers and 6-31G(d) for all other atoms. 29 No negative frequencies were observed for these optimized geometries, which indicated that local minima had been achieved. Fe 2+ was assumed to be low spin with a singlet spin state. Cu 2+ and Zn 2+ were calculated with doublet and singlet spin states respectively. Formation energies (DG) were calculated for each metal complex using a simplied terthiophene unit to mimic the energetics of the larger polythiophene, while avoiding a high computational demand. While larger polymer units may have changed the overall energetics, the relative binding preferences were constrained by the local electronic and geometric nature of the terpyridine residue. Relative formation energies (DG) for each complex were calculated using a products-reactants system as shown in eqn (1) Optimized energies were used for all substituents and these structures yielded no negative frequencies as above.

Electrosynthesis and characterization of poly(TTPy)
The TTPy has been previously synthesized and used in the development of paper-and glass-based disposable iron(II) optical sensors. 4 In this sensor design, two properties of the monomer led to the development of novel time-and concentration-based analytical methods through, (i) the ability to complex metal ions by the terpyridyl moiety and (ii) deceleration of the complex formation by the presence of the terthiophene moiety. The Fe[(TTPy) 2 ] 2+ complex has an absorbance maximum at 591 nm, which is not masked by the absorption of TTPy complexes with any other metal ions (spectroscopic ngerprint of metal-terpyridine complex). 4 The polymerization of TTPy, however, offered the opportunity to further expand the sensing capabilities of these species.
Conducting polymer lms of poly(TTPy) (1 and 4) could be obtained by electropolymerization of the TTPy terthiophene moiety (Fig. 1A). The electrodeposition of poly(TTPy) by cyclic voltammetry is shown in Fig. 1B. A thin conducting polymeric lm was obtained during a full single potential cycle. When scanning the potential from À0.2 to 0.8 V using a scan rate of 0.1 V s À1 , the polymer lm formation began at 0.55 V as a sharp increase of the current density, followed by an oxidation peak maximum around 0.8 V.
On the reverse scan from 0.8 to À0.2 V, a reduction peak was recorded at 0.15 V corresponding to the reduction of the electrodeposited poly(TTPy). Such a polymerization pattern is typical of terthiophene-based polymers, 30,31 consequently, single CV cycles up 0.8 V were used to grow the thin polymer lms (the measured thickness was approx. 95 nm). For thicker lms that could be used for SEM analysis, electropolymerisation was undertaken over ve consecutive potential cycles. The morphology of the lm is shown in the inset of Fig. 1B. The SEM image showed full ITO coverage by the poly(TTPy) with well pronounced globular features.
Resonance Raman measurements were performed to characterize the poly(TTPy) lm and are presented in Fig. 1C. The data showed a number of weak spectral features, which are dominated by the band at 1440-1453 cm À1 . This band is well known as the thiophene line B and is visualized in Fig. 2A. The comparative strength of this band indicates that thiophene is involved in the transition occurring for these wavelengths. The next strongest bands at 1103 and 1516 cm À1 , are predicted to be terthiophene based ( Fig. 2A). This is consistent with electronic transitions which are terthiophene localised. Characteristic terpyridyl signals (typically around 1000, 1360, 1560 and 1590 cm À1 ) are not observed. 32 TD-DFT data indicated this transition is of HOMO to LUMO nature, and elicits the transfer of electron density from a terthiophene orbital to an orbital delocalized over the terthiophene, C]C and terpy units (Fig. 2B). The B line vibration exhibits 'frequency dispersion', a redshi of band frequency as the excitation wavelength is increased, as a result of a high polarizability. 33 This effect is uncommon in thiophene oligomers/polymers due to an increasing presence of p-stacking as the thiophene backbone is elongated; p-stacking results in a partial cancelation of p-delocalisation, despite an increased thiophene length. A 'so' B line, which disperses as a function of excitation wavelength, suggests that p-stacking in this polymer lm is minimal. 34 Such a result is expected due to the steric bulk of the terpyridine residues, which may make pÀp interactions between thiophene units difficult.

Modication of poly(TTPy) with Fe 2+
The electropolymerised poly(TTPy) lms on ITO glass (1 and 4) were treated with Fe 2+ followed by TPy to give poly(TTPy)Fe lms (2 and 5) (Fig. 1A). Two lms were prepared in order to allow further modication with Cu 2+ and Zn 2+ ions. The electrochemical and optical properties of poly(TTPy) before and aer Fe 2+ modication are shown in Fig. 3A and B (lms 1 and 2) and Fig. 3C and D (lms 4 and 5).
From this electrochemical and optical study, it can be seen that the poly(TTPy) lms 1 has a broad oxidation peak with the oxidation maximum around 0.75 V and lm absorption maximum at 550 nm. The modication of poly(TTPy) lm 1 by Fe 2+ /TPy (lm 2) dramatically inuenced its properties. The oxidation peak of the modied lm was shied towards lower potential values, namely 0.5 V, and resulted in higher electrochemical capacitance. This phenomenon indicated that the conjugation of the poly(TTPy) was improved due to the introduction of Fe 2+ /TPy to the lm. This conjugation improvement may also be conrmed by the bathochromic shi in the absorbance maximum of lm 2 (Fig. 3B) although, given the  marked increase in absorption intensity, this must also be contributed to by the Fe[TTPy(TPy)] 2+ complex. The metal-toligand charge-transfer (MLCT) band absorption for Fe [(TPy) 2 ] 2+ occurs in solution at 552 nm while that of Fe(TTPy) 2 is substantially red shied to 591 nm. 4 Therefore it is not surprising that the asymmetric Fe[TTPy(TPy)] 2+ complex would not be so red-shied and absorb around 575 nm. Thus, it would appear that during the lm modication with Fe 2+ /TPy, not only is the surface of the lm modied but also the bulk of the conducting polymer. In addition, the molar extinction coefficient (absorptivity) of the lm visibly changed aer modication by Fe 2+ /TPy. This increase is likely due to both the increase in polymer conjugation as well as incorporation of Fe 2+ /TPy into the polymer resulting in complex formation.
XPS and contact angle measurement of the surface of lms before and aer modications were performed and the results are given in Fig. 4 and Table 1. The XPS analysis conrmed the presence of iron in the modied lm (Fig. 4A). The contact angles before and aer modication by Fe 2+ and Fe 2+ -TPy did not differ.

Stability of the Fe[(TTPy) 2 ] 2+ complex in the presence of competing ions
Owing to the strong affinity of the terpyridine moiety towards various metal ions, the poly(TTPy)Fe lm could be further modied. To this end, we undertook an additional study to select the most suitable metals ions to replace Fe 2+ in the polymer lm. In order to avoid the overlap of the broad absorption of the poly(TTPy) at 550 nm ( Fig. 3B) with that of the absorption due to the polymer TTPy/Fe complex at 598 nm (Fig. 5B), we used monomer (TTPy) to investigate the formation of the Fe[(TTPy) 2 ] 2+ complex in the presence of seventeen different cations (Na + , K + , Mg 2+ , Ag + , Ca 2+ , Al 3+ , Sr 2+ , Zn 2+ , Fe 3+ , NH 4 + , Ba 2+ , Mn 2+ , Hg 2+ , Ni 2+ , Co 2+ , Cu 2+ and Ru 3+ ) with the kinetic procedures (protocols) developed in our previous study 4 (Fig. 5). The TTPy monomer was incorporated into a polymer membrane on paper as to mimic the solid environment of the polymer. As shown by both measurement protocols (see Experimental section and ref. 4), the Cu 2+ and Zn 2+ ions yielded the lowest absorbances of TTPy/Fe complex formation, indicating that these two metal ions were competing for complex formation with Fe 2+ , this suggested that Cu 2+ and Zn 2+ ions could be a good candidates for decomplexing Fe from the poly(TTPy)Fe lms.

Modication of poly(TTPy) with Cu 2+ and Zn 2+
The poly(TTPy)Fe was further modied by Cu 2+ and Zn 2+ to obtain poly(TTPy)Cu and poly(TTPy)Zn lms with different spectroelectrochemical properties. The electrochemical and optical properties of poly(TTPy)Cu (lm 3) shown in Fig. 3A and B and poly(TTPy)Zn (lm 6) in Fig. 3C and D. The oxidation potential of poly(TTPy)Cu was similar to that of unmodied poly(TTPy) (0.75 V) while the oxidation potential of poly(TTPy) Zn was 0.6 V. In both cases, loss in conjugation of the polymeric lm would account for the shi in the oxidation potential towards higher potentials. This decrease in polymer conjugation was also observed in UV-VIS spectra, where the absorption spectra from poly(TTPy) decreased. The absorbance peak maximum for the poly(TTPy)Cu was 568 nm, 7 nm less than that of poly(TTPy)Fe. For the lm modied by Zn 2+ and Zn 2+ -TPy, the absorbance peak maximum for the new material was recorded at 583 nm, 8 nm more than that of poly(TTPy)Fe. Both modications resulted in more hydrophilic lms compared to pure poly(TTPy) and poly(TTPy)Fe as evidenced by the contact angle data in Table 1. Moreover, XPS analysis (Table 1) revealed that for the poly(TTPy)Cu lm, all the Fe 2+ was exchanged by Cu 2+ , while in the case of poly(TTPy)Zn, only a partial exchange, at  least at the surface was observed. The electrochemical capacitance of the poly(TTPy)Zn lm was similar to poly(TTPy)Fe. However, the electrochemical capacitance of poly(TTPy)Cu decreased dramatically compared to that of poly(TTPy)Zn or poly(TTPy)Fe, providing the information that introduced Cu 2+ inuenced the integrity of the modied lm, thus reducing its electroactivity. This fact indicated the loss in the conjugation of the modied lm. The poly(TTPy)Zn lm remain the integrity of the poly(TTPy) as the peak maximum of the conducting polymer, around 550 nm remain. The major difference between poly(TTPy)Cu and poly(TTPy)Zn was the solvent used, where for Zn 2+ and Cu 2+ modications 1 : 1 ACN : H 2 O and ACN were applied, respectively. In the presence of ACN partial release of Cu 2+ may occur that further on acts as oxidizing agent for the conducting polymer lm. This phenomenon was investigated and reported in Cu 2+ /ACN polythiophene aggregates chemistry. 35 Moreover, the XPS core level spectra (Fig. 4B) revealed that the binding energy of Cu 2p 3/2 in poly(TTPy)Cu was $932, which corresponds to Cu(I) and/or Cu(0). 36,37 These data indicated that redox reactions may have inuenced on the stability of the system and caused reduction of Cu 2+ on the surface of lm. The binding energy of Zn 2p 3/2 in poly(TTPy)Zn was $1022 eV (Fig. 4D), which is attributed to Zn(II) species. 38 The binding energy of Fe 2p 3/2 in this lm was $711 eV and could be ascribed to both Fe(II) and Fe(III) states. 37 DFT calculations were carried out to investigate metal exchange observed experimentally by cyclic voltammetry and optical spectroscopy. Formation energies (DG) were calculated for each metal complex using the chemical stoichiometry shown in eqn (1)-(3). The DG values were compared between cations to give relative binding preferences (Fig. 6).
The calculations show a relative preference for Zn 2+ (À77 kJ mol À1 ) and Cu 2+ (À157 kJ mol À1 ) complexes compared to the Fe 2+ equivalent. This supports the experimentally observed exchange of Fe 2+ to Cu 2+ and Zn 2+ . The Cu 2+ and Fe 2+ results are consistent with binding constants for Cu 2+ and Fe 2+ with the nitrogen binding ligand 2,2-bipyridine. [39][40][41] A difference in energy between the cations is likely due to N-metal binding affinities and preferential binding geometries. The predicted N-metal distances were explored in more detail in Table 2. Some differences in the geometries between the metal complexes were observed. For example, a 'clamped' geometry was predicted for Fe[TTPyTPy] 2+ with short N-Fe bonds (2.00Å) and a distorted terpyridine structure (5, 4 0 , 5 00 bond angle of 82.9 versus 93.4 for bare terpyridine). Zn[TTPyTPy] 2+ exhibits the longest N-M bonds at 2.22Å, while 2.17Å is predicted for Cu [TTPyTPy] 2+ with the least ligand angle deformation. These results suggest that Cu 2+ binding results in the least distortion of the TPy residue and may be more highly conjugated within the terpy residue. In contrast, Fe 2+ binding results in the largest distortion, which goes some way to support the experimental binding trends (Cu 2+ > Zn 2+ > Fe 2+ ).
In accordance with the results for Cu 2+ shown above, a reduced Cu + cation was also considered. This is especially valid as Cu + is more stable than Cu 2+ in acetonitrile and reduction of Cu 2+ may occur. 42 Cu[TTPyTPy] + complex were predicted to be less favorable compared to Cu[TTPyTPy] 2+ (a difference of +35 kJ mol À1 ). The energy difference is thought to be due to the well-established preferential geometries of Cu + and Cu 2+ . Cu + favors a tetrahedral arrangement and Cu 2+ favors a trigonal bipyramidal arrangement. 43,44 The binding pockets of TPy 2 and TPPyTPy are more trigonal bipyramidal like, hence are best suited to a Cu 2+ cation. When considering Zn 2+ and Fe 2+ cations, Cu + would be preferred (À45 and À122 kJ mol À1 respectively).

Conclusions
The electropolymerization of a thin conducting polymeric lm based on the repeating unit of (E)-4 0 -(2-(4,4 00 -bisdecyloxy-2,2 0 :5 0 ,2 00 -terthiophen-3 0 -yl)ethenyl)-2,2 0 :6 0 ,2 00 -terpyridine (TTPy) was achieved by the application of cyclic voltammetry. Further on, the same polymeric material was found useful in tuning its electrochemical and optical properties by application of molecular architecture via surface and bulk modications of the conducting lm. The modication was done by different metal ions and their terpyridine complexes in various solvents (ACN and 1 : 1 ACN : H 2 O). The electrochemical and optical properties of the conducting polymer lms changed dramatically, namely lms modied by Fe 2+ and Fe 2+ -TPy resulted, in comparison to pure poly(TTPy), in an increased electrochemical capacitance, better conjugation of the conducting polymer system and higher absorptivity of the obtained lm. Further exchange of the Fe 2+ to Zn 2+ and Cu 2+ resulted in different electrochemical and optical properties of the obtained modications. The electrochemical capacitance of the Zn 2+ modied  conducting polymer was maintained while optical properties of the lm changed, while the electrical capacitance of the Cu 2+ modied lm signicantly decreased indicating deterioration of the conducting polymer structure. The surface and bulk modication of the polymeric lm as demonstrated here may lead to the application of this methodology to obtain a material with tunable optical and electrochemical properties. Such modication may be obtained, in poly(TTPy), by application of different metal ions and various ligands equipped with terpyridine functionality as well as application of various solvents during the modication. Such materials may have application in changeable and switchable surfaces and intelligent sensors.

Conflicts of interest
There are no conicts to declare.