Correcting  macro to compute efficiencies