loops, but errors