really thank you bodden i will do it now but we have another problem that the compiler exit from it's while(1) loop after applying the first If statement . i wana to be continue in the loop.

Thanks bodden.