changes for saving existing data