thanks. it worked by putting the 2 lines in both functions. I thought I need one line for each function. thank you and I hope you enjoy it