update with a flag for data/MC
update with a flag for data/MC