A polymer comprising a conducting or semiconducting segment coupled to a polymer segment having an insulating polymer backbone, the polymer further comprising a RAFT functional group coupled to the polymer segment, wherein there is no RAFT functional group in between the conducting or semiconducting segment and the polymer segment.