added code to save before load