updated code for cut eff