simplifying instrumentation code