updated modify_dye to work with initial files without dye