Casting loopings into gang bang