code for efficiency and fake rate plots