implemented setupRecorder method