second commit

add some functions