just write when changed