add instrumented function