change the efficiency formula in endcap