function to get ms to dye