add some functions.