initial definition of functions