added functions.h file
couple added functions