flux and leakage