tune listdefect function