clean up startRecord fn