complete draft of ADI derivation