save before structure change