finish recorder basic function