update recording flag