HBr catalyzed photoisomerization of allyl halides