that sounds like the best answer. i don't have the code yet, i was trying to work out the problem first so that i didn't have to scrap anything i wrote and start over. this helps a lot and thank you very much for the tip