switched from my Macbook to my Mac Pro and copy and pasted the code into an email and pasted it into Xcode on the Mac Pro and it ran flawlessly. must have just been my Macbook. i have no clue why it didn't work there, but it's good to know that my eyes not spotting the error wasn't the reason. ;~)