re-writing inverse-detection-efficiency derivation