thanks , now the code works perfectly