fixed timing and converted dye to ppb