addFunction