Merge pull request #1 from ykzts/optimize-recording

optimize recording