add recording feature.