added instrumented code