thFun added