update the save and dirty marking code in atc