functions to add functions to the environment