addfunctions

add functions