What Joel said.

Also, why are you calling 'next nil' ?