added the functions
adding the definitions