I used the second version and it works. Thanks for the explanation.