swarm - replace unnecessary lists with generators - Issue #5