LOL, nevermind, I had missed a line which I went back to and changed to "return getnum", now it's working much better, sorry about that!