add functions

Signed-off-by: changedi <jysoftware@gmail.com>