ok, xld, I tried it once again. I kinda understood where to put it. now it shows an error on the swapRows line.