add some functions about funs