add function: record and play