added an exception for saving