i changed it to your code above and it works like a charm. thanks!!