update the prototype of decorated function