updated dye integral