map shouldn't need to catch StopIteration (the for should handle it)