fix average efficiency calculation