Two different reaction mechanisms of cinnamate side groups attached to the various polymer backbones