add a new function

Signed-off-by: lrl <371767072@qq.com>