 Either the dye or the sugar is reacted with succinic anhydride.This forms an amide group with the sugar or an ester group with the dye.The free carboxylic acid may then react with the alcohol group or amine group on the corresponding dye or sugar.