put some functions in libraries
put some functions in libraries