start to generate instrumentation code