ps: i have another question about the same code should i creat new thread or continue in the same ?
Well, hold on for a minute; think about what a good title for the problem would be and then decide accordingly. If the current title fits the problem, stay in the thread; if not, not.