with a little modification your code worked great. thanks for the help