add some functions

add some functions