[CH:1]1[C:9]2[C:8]3[CH:10]=[CH:11][CH:12]=[CH:13][C:7]=3[S:6][C:5]=2[C:4]([N:14]2[C:26]3[CH:25]=[CH:24][CH:23]=[CH:22][C:21]=3[C:20]3[C:15]2=[CH:16][CH:17]=[CH:18][CH:19]=3)=[CH:3][CH:2]=1.C1C(=O)N([Br:34])C(=O)C1.O>CN(C=O)C>[Br:34][C:23]1[CH:24]=[CH:25][C:26]2[N:14]([C:4]3[C:5]4[S:6][C:7]5[CH:13]=[CH:12][CH:11]=[CH:10][C:8]=5[C:9]=4[CH:1]=[CH:2][CH:3]=3)[C:15]3[C:20]([C:21]=2[CH:22]=1)=[CH:19][CH:18]=[CH:17][CH:16]=39-(dibenzo[b,d]thiophen-4-yl)-9H-carbazole (6 g, 17.17 mmol) was dissolved in 100 mL of DMF. The solution was cooled to 0° C. To the solution was added NBS (3.36 g, 18.89 mmol) in 20 mL of DMF dropwise. After stirring at this temperature for 1 h, HPLC indicated there was very little reaction. The reaction was warmed to room temperature and monitored by HPLC. After 24 h, 500 mL of water was added to the reaction and stirred at room temperature for 2 h. The white precipitate was filtered and washed with water. The solid was dissolved in DCM and washed with water and dried over MgSO4. The residue was used directly for the next step. The product contains 10% of starting material, 80% of desired product and 10% of dibrominated product.