add duanzi function.