I used the second code. Thanks.