thanks for the post, the code works