changed a function call for putNewFun