edited saveRecording