initial commit of functions
updated mail