add totalloopcouont define and change driver 2 move dir