added RECORD_SAMPLE