add some basic functions.