enhance: limit recording period by setting
remove unused code