updated efficiency calculation