bug in instrument()