you are smarter than 8c. just put sd = nil above your loop. 8c isn't smart enough to know that the body of
for(i=0; i<2; i++) because it does not make two copies of the i<2 test, so it cannot determine that the very first one is guaranteed to succeed. russ