changing the DIY of the for loop and enumerate

2 jobs for master in 1 minute and 10 seconds (queued for 6 seconds)