save before merging