instrumenting methods