return outside the loop. Closes #2.