i think the problem is in (wait) when i add it befor the for loop evrything work great in this exemple .