dye analysis