working version. Save fails