paul , dave ... thank you guys for your time
im sorry for the previous post .
i didn't understand that the flag needed was for the timer .
i was trying a button state instead .
so with this kind of timers , i need to know how to constrain the miilis time start with a flag .
i thought that the count1 ==1 , was a sufficient for this task .
thank you for help and explanation the code is working perfectly .